import service from '@/network/request';

export const deleteCampList = (data) => {
  return service({
    url: '/camp/deleteCampList',
    method: 'post',
    data: data,
  })
}

export const getCampList = (data) => {
    return service({
      url: '/camp/getCampList',
      method: 'post',
      data: data,
    })
  }

export const updateCamp = (data) => {
    return service({
        url: '/camp/updateCamp',
        method: 'post',
        data
    })
}

export const createCamp = (data, params) => {
    return service({
        url: '/camp/createCamp',
        method: 'post',
        data,
        params: {
          ...params
        }
    })
}